projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea35756
)
* src/data.c (Ffset): Don't signal gratuitous errors
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 2 Nov 2018 19:00:34 +0000
(15:00 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 2 Nov 2018 19:00:34 +0000
(15:00 -0400)
src/data.c
patch
|
blob
|
history
diff --git
a/src/data.c
b/src/data.c
index 538081e5c9b062dbf12902767fa37a22ab33d8e0..f8b991e8981b41ecb31318d3e9f297d2caf14b25 100644
(file)
--- a/
src/data.c
+++ b/
src/data.c
@@
-758,7
+758,9
@@
DEFUN ("fset", Ffset, Sfset, 2, 2, 0,
register Lisp_Object function;
CHECK_SYMBOL (symbol);
/* Perhaps not quite the right error signal, but seems good enough. */
- if (NILP (symbol))
+ if (NILP (symbol) && !NILP (definition))
+ /* There are so many other ways to shoot oneself in the foot, I don't
+ think this one little sanity check is worth its cost, but anyway. */
xsignal1 (Qsetting_constant, symbol);
function = XSYMBOL (symbol)->u.s.function;